package com.mhkj.common.index;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mics.core.common.util.UserHelper;
import com.mics.core.system.organizational.bean.Employee;

@Controller
@RequestMapping("/index")
public class IndexController {

	@RequestMapping("/indexHead")
	@ResponseBody
	public Employee indexHead(HttpServletResponse response,HttpServletRequest request) {

		Employee employee = UserHelper.getCurrentEmployee();
		return employee;
	}
}
